﻿using System.Globalization;
using System.Windows.Controls;
using ValidationResult = System.Windows.Controls.ValidationResult;

namespace YY.Admin.Core.FluentValidation
{
    public class MyFluentValidation : ValidationRule
    {
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            Console.WriteLine($"[FluentAutoValidationRule] Validate 调用，当前值：{value ?? "null"}");
            return ValidationResult.ValidResult;
        }
    }
}
